<?php

namespace app\model\video;

use app\BaseModel;
use think\model\relation\HasMany;

/**
 * 视频类型
 */
class VideoTypeModel extends BaseModel
{
    protected $name = 'video_type';

    /**
     * 视频
     * @return HasMany
     */
    public function Video(): HasMany
    {
        return $this->hasMany(VideoModel::class,'type_id');
    }
}